package com.limingfeiyu.platform.management.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.limingfeiyu.common.web.PageTable;
import com.limingfeiyu.platform.management.entity.SysDict;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * <p>
 * 系统字典 服务类
 * </p>
 *
 * @author 黎铭飞羽
 * @since 2024-03-02
 */
public interface ISysDictService extends IService<SysDict> {

	/**
     * 分页查询
     * @param pageTable
     * @return
     * @throws Exception
     */
    Page<SysDict> pageList(PageTable<SysDict> pageTable) throws Exception;

    /**
     * 获取字典名称
     * @param dictName
     * @return
     */
    SysDict getSysDictByDictName(String dictName);


    /**
     * 获取字典列表（含有子项）：getContainChildrenDictList
     *
     * @return
     */
    List<SysDict> getContainChildrenDictList();


    /**
     * 根据字典名称获取字典列表（含有子项）：getContainChildrenDictListByDictName
     *
     * @param dictName
     * @return
     */
    List<SysDict> getContainChildrenDictListByDictName(String dictName);
}
